<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <META http-equiv="Content-Type" content="text/html;charset=UTF-8"> 
  </head>
  <title>Detalles del inmueble</title>
  <body>
  <div align="left">
  	
  	<font color="green"><s:actionmessage/></font>
  
    <h2>Detalles del inmueble</h2><h1></h1>
 		
 		
 		 	 		
 		<br/>
 		<h2>Inmueble en <s:property value="homeDetail.city.name" /> (<s:property value="homeDetail.city.state.name" />) </h2> 	
 		<h1><s:property value="homeDetail.cost" /> €</h1>
 		<img src='<s:url value="showPicture"> 
 		 <s:param name="id" value="homeDetail.id"></s:param> 		 
 		</s:url>' />
 		<br/>
 		 <s:form>
 		<table>
 			<tr height="15">
 				<td>
 					Superficie:		
 				</td>
 				<td>
 					<s:property value="homeDetail.area" /> m2
 				</td>
 			</tr> 				
 			<s:checkbox name="homeDetail.hasGarden"  labelposition="left" label="Jardín" disabled="true"  fieldValue="true"/> 			
 		</table>
 		
 		<h2>Descripción:</h2>
 		
 		<s:property value="homeDetail.description" />
 		
 		
 		
 		
 		</s:form>
 	 <s:form action="sendMail">
 		 <s:hidden name="homeDetail.cost"></s:hidden>
 		 <s:hidden name="homeDetail.description"></s:hidden>
 		 <s:hidden name="homeDetail.city.name"></s:hidden>
 		 <s:hidden name="homeDetail.city.state.name"></s:hidden>
 		 <s:hidden name="homeDetail.user.email"></s:hidden>
 		 <s:hidden name="homeDetail.area"></s:hidden>
 		 <s:hidden name="homeDetail.id"></s:hidden>
 		  <s:hidden name="homeDetail.hasGarden"></s:hidden>
 		  <br/>
 		 <s:textfield label="nombre" name="name"  size="19"  ></s:textfield>
 		 <s:textfield label="correo electrónico" name="mail"  size="19" ></s:textfield>
 		 <s:submit type="button" label="Mostrar interés" method="execute" align="center" ></s:submit>
	</s:form>
 	
 
 	  <s:actionerror/>
  
  </div>
  </body>
</html>